<!--:if (ok) {-->
<!--: include("/admin/packs/item.html"){} -->

<div class="jimu-none" style="display: none;">
    <table id ="pack-table-y">
        <tr id="tr-${pack.id}">
            <td style="background: #ffff00;">
                <a href="item.html?id=${pack.id}" onclick="return $(this).ajaxLoad();">${pack.name}</a><br>
                CPU：${pack.cpuString!}，内存：${pack.memoryString!}，带宽：${pack.bandwidthString!}<br>
                映像：${pack.image.name!"无"}<br>
                创建时间：${pack.createTimeString}
            </td>
            <td style="background: #ffff00;">${pack.price} 元/月</td>
        </tr>
    </table>
</div>
<script>
                if ($("#pack-table #tr-${pack.id}").length > 0) { // 修改
                    $("#pack-table #tr-${pack.id}").html($("#pack-table-y #tr-${pack.id}").html());
                } else { // 添加
                    $("#pack-table tbody").prepend($("#pack-table-y #tr-${pack.id}"));
                    $("#pack-table").trigger("update");
                }
//            { // 删除
//                $("#pack-table #tr-${pack.id}").remove();
//                $("#pack-table").trigger("update");
//            }
//    $().bobWindow();
</script>
<!--:} else {-->
<div class="jimu-message" style="display: none;">
    <div class="modal" tabindex="-1" data-keyboard="false" style="display: none;">
        <div class="modal-content">
            <div class="modal-header">
                <button type="button" class="close" data-dismiss="modal" aria-hidden="true">&times;</button>
                <h3>错误提示</h3>
            </div>
            <div class="modal-body">
                ${message}
            </div>
            <div class="modal-footer">
                <button type="button" data-dismiss="modal" class="btn btn-primary">关闭</button>
            </div>
        </div>
    </div>    
</div>
<!--:}-->